import request from '@/utils/request'

// 查询外出登记列表
export function listOutgoing(query) {
  return request({
    url: '/system/outgoing/list',
    method: 'get',
    params: query
  })
}

// 查询外出登记详细
export function getOutgoing(id) {
  return request({
    url: '/system/outgoing/' + id,
    method: 'get'
  })
}

// 新增外出登记
export function addOutgoing(data) {
  return request({
    url: '/system/outgoing',
    method: 'post',
    data: data
  })
}

// 修改外出登记
export function updateOutgoing(data) {
  return request({
    url: '/system/outgoing',
    method: 'put',
    data: data
  })
}

// 删除外出登记
export function delOutgoing(id) {
  return request({
    url: '/system/outgoing/' + id,
    method: 'delete'
  })
}
